package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 于永利
 * @since 2024-08-03
 */
@Getter
@Setter
@TableName("tab_menu")
public class TabMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单的名字
     */
    private String mname;

    /**
     * 图标
     */
    private String icon;

    /**
     * 父菜单id， null 按钮
     */
    private Integer pid;

    /**
     * 编码
     */
    private String mcode;

    /**
     * 路径
     */
    private String url;
    /**
     * 子菜单
     */
    @TableField(exist = false)
    private List<TabMenu>  childMenus = new ArrayList<>();

}
